package com.hhck.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * 权限表
 */
@Data
public class Auth implements Serializable {

    private Integer authId;

    /**
     * 父id为空或为0，表示一级权限
     */
    private Integer parentId;

    private String authName;

    private String authDesc;

    private Integer authGrade;

    // 1模块，2列表，3按钮
    private String authType;

    private String authUrl;

    private String authCode;

    private Integer authOrder;

    // 1启用，0禁用
    private String authState;

    private Integer createBy;

    private Date createTime;

    private Integer updateBy;

    private Date updateTime;

    private static final long serialVersionUID = 1L;

    /**
     * 以下为追加的属性
     */
    // 这个集合用来存放当前菜单下所有的子菜单
    private List<Auth> childAuth;

}

